package com.shop.util;

import org.mindrot.jbcrypt.BCrypt;

public class Hash {
    public static String hash(String s){
        return BCrypt.hashpw(s, BCrypt.gensalt());
    }
    public static boolean compare(String s,String s1){
        return BCrypt.checkpw(s,s1);
    }
}
